package com.smart.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.smart.common.utils.file.FileUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import com.smart.common.annotation.Excel;
import lombok.Data;
import lombok.Builder;
import com.smart.common.core.domain.BaseEntity;

import lombok.*;

import java.io.InputStream;
import java.io.Serializable;
import java.util.Date;

/**
 * 【请填写功能名称】对象 audio
 *
 * @author smart
 * @date 2025-01-07
 */
@Data
@Builder
@TableName("audio")
@AllArgsConstructor
@NoArgsConstructor
public class Audio implements Serializable {
private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @Schema(description ="主键")
    @TableField(value = "id",exist = true)
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    private String id;

    /** $column.columnComment */
    @Excel(name = "发送人Id", readConverterExp = "$column.readConverterExp()")
    @Schema(description ="发送人Id")
    @TableField(value = "employee_id",exist = true)
    private Integer employeeId;

    /** $column.columnComment */
    @Excel(name = "被发送人Id", readConverterExp = "$column.readConverterExp()")
    @Schema(description ="被发送人Id")
    @TableField(value = "to_employee_id",exist = true)
    private Integer toEmployeeId;

    /** 0文字1语音 */
    @Excel(name = "0文字1语音")
    @Schema(description ="0文字1语音")
    @TableField(value = "type",exist = true)
    private Integer type;

    /** $column.columnComment */
    @Excel(name = "内容", readConverterExp = "$column.readConverterExp()")
    @Schema(description ="内容")
    @TableField(value = "body",exist = true)
    private String body;

    @Schema(description = "创建时间")
    @TableField(value = "create_time",exist = true)
    private Date createTime;

    @Schema(description = "发送者名称")
    @TableField(value = "name",exist = false)
    private String name;

    @Schema(description = "发送者头像")
    @TableField(value = "photo",exist = false)
    private String photo;
}
